package com.ssyt.yt1.day5.encapsulation;

/**
 * 测试封装
 * 
 * @author Administrator
 *
 */
public class ComputerMain {

	public static void main(String[] args) {
		// Computer computer = new Computer();
		// computer.setBrand("Alien");
		// computer.setColor("黑色");
		// computer.setCpuVersion("I7");
		// computer.setCpuLevel("H");
		// computer.setPrice(99999);
		// computer.setSize("1米*1米");
		// computer.setWeight(10000000);

		Computer computer = new Computer("联想", 1);
		computer.setColor("黑色");
		computer.setCpuVersion("I7");
		computer.setCpuLevel("H");
		computer.setSize("1米*1米");
		computer.setWeight(10000000);
		System.out.println(computer.showInfo());
	}
}
